package com.gxk.res;

import com.badlogic.gdx.graphics.g2d.TextureAtlas.AtlasRegion;
import com.badlogic.gdx.scenes.scene2d.ui.ImageButton;
import com.badlogic.gdx.scenes.scene2d.utils.TextureRegionDrawable;
import com.badlogic.gdx.utils.Array;

public class ButtonFactory implements IResource {
	private static Array<AtlasRegion> buttonRegions = ATLAS
			.findRegions("button");

	public static ImageButton getStartButton() {
		return new ImageButton(new TextureRegionDrawable(buttonRegions.get(1)));
	}

	public static ImageButton getRanKingButton() {
		return new ImageButton(new TextureRegionDrawable(buttonRegions.get(0)));
	}

	public static ImageButton getRateButton() {
		return new ImageButton(new TextureRegionDrawable(buttonRegions.get(2)));
	}
}
